package cc.wsyw126.java.mongoDB.dto;

import java.sql.Timestamp;

/**
 * Created by junpeng.yang on 17/1/9.
 */
public class UnitResourceModel {
    private Integer unitId;
    private Integer resourceId;
    private Timestamp createdAt;
    private Timestamp updatedAt;
    private String SHA1;
    private String operator;
    private String parent;
    private Boolean delete;
    private Boolean recover;

    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getSHA1() {
        return SHA1;
    }

    public void setSHA1(String SHA1) {
        this.SHA1 = SHA1;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    public Boolean getRecover() {
        return recover;
    }

    public void setRecover(Boolean recover) {
        this.recover = recover;
    }


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("UnitResourceModel{");
        sb.append("unitId=").append(unitId);
        sb.append(", resourceId=").append(resourceId);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", SHA1='").append(SHA1).append('\'');
        sb.append(", operator='").append(operator).append('\'');
        sb.append(", parent='").append(parent).append('\'');
        sb.append(", delete=").append(delete);
        sb.append(", recover=").append(recover);
        sb.append('}');
        return sb.toString();
    }
}
